package 课程设计报告_hb_7_8;

/**
 * 
 * synsynchronized 锁住共享的资源，如本例中的account成员变量
 *
 */
public class AccountTest {
   public static void main(String[] args) throws InterruptedException {
	 Account account = new Account("10011",1000);
//	 DrawMoneyThread zs = new DrawMoneyThread("张三",account,800);
//	 DrawMoneyThread ls = new DrawMoneyThread("李四",account,300);
	  
	 DrawMoneyThread zs = new DrawMoneyThread("张三",account,800);
	 AddMoneyThread ls = new AddMoneyThread("李四",account,300);
	 
	 zs.start();
//	 zs.join();
	 ls.start();
	 
	 
}
}
